import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
const routes: Array<RouteRecordRaw> = [
   {
      path: "/",
      name: "Home",
      meta: {
         title: "首页",
         keepAlive: true
      },
      component: () => import("@/views/Home/index.vue"),
   },
   {
      path: "/login",
      name: "Login",
      meta: {
         title: "登录",
         keepAlive: true
      },
      component: () => import("@/views/Login/index.vue"),
   },
];
// 创建路由对象
const router = createRouter({
   history: createWebHashHistory(), // hash模式
   routes
});
export default router;
